interface Device {
    id: number;
    name: string;
    type: number;
    guid: string;
    locationId: number;
}


interface Node {
    id: number;
    name: string;
}

interface Location {
    id: number;
    name: string;
}


interface Converter {
    id: number;
    name: string;
    type: number;
    nodeId: number;

}

interface ConverterType {
    id: number;
    name: string;
    img: number;

}



interface Serial {
    id: number;
    addr: string;   
    nodeId: number;

}

interface DeviceState {
    id: string;
    online: boolean;
    metrics: Metric[];
}


interface Metric {
    name: string;
    value: any;
}